<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>test</title>
</head>
<body>
    <script src="js/libs/jquery-3.3.1.min.js"></script>
    <script>
        $.ajax({
            url: 'http://39.106.126.22/gkshop/product/productDetail',
            data: {
                productId: 1
            },
            // beforeSend: function(request){
            //     request.setRequestHeader('token','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdFRpbWUiOjE1MTY0NTI1ODQyODQsIm91dFRpbWUiOjE1MTcwNTczODQyODQsInRlbGVwaG9uZSI6IjEyMzQ1Njc4OTAxIn0.nt2GOdnTOybofU4OzjIQUqNQNY3Q6vU5jLDpp_lm6Bg')
            // },
            dataType: 'JSON',
            type: 'post',
            success: function(){
                console.log('成功')
            },
            error: function(){
                console.log('失败')
            }
        })
    </script>
</body>
</html>